import { MidwayConfig } from '@midwayjs/core';

export default {
  staticFile: {
    dirs: {
      default: {
        prefix: '/static',
        dir: 'public',
      },
      picture: {
        prefix: '/pic',
        // dir: 'D:/picture',
        dir: '/home/xieweig/main/photo',
      },
    },
  },
  // use for cookie sign key, should change to your own and keep security
  keys: '1682211010515_1122',
  koa: {
    port: 7001,
  },
  typeorm: {
    dataSource: {
      default: {
        type: 'mysql',
        host: 'localhost',
        port: 3306,
        username: 'root',
        password: '123456',
        database: 'backto',
        synchronize: true,
        logging: true,
        entities: ['**/entity/*.entity{.ts,.js}'],
      },
    },
  },
} as MidwayConfig;
